#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.urls import path
from django.views.decorators.csrf import csrf_exempt
from rest_framework.routers import SimpleRouter
from vehicle import views
from .views import *
router = SimpleRouter()
router.register("api/vehicle", VehicleInfoModelViewSet),
router.register("api/vehicle_fence", VehicleFenceModelViewSet),
router.register("api/vehicle_move", VehicleMoveModelViewSet),
router.register("api/vehicle_fault", VehicleFaultModelViewSet),
router.register("api/vehicle_fault_log", VehicleFaultLogModelViewSet),
urlpatterns = [
    path("api/vehicle_info/real_data/<str:pk>", views.qiao.as_view()),
]
urlpatterns += router.urls
